package cqrtplm.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum     StoragePlanningEnum {
    STATUS_REQUIREMENT_TEMPLATE("ty.inteplm.part.CTyPart","零部件","状态需求模板","9-需求模板库","需求模板"),

    PATTERN_CODE("ty.inteplm.part.CTyPart","零部件","图样代号","6-物料库","图样代号"),

    MATERIAL_CODE("ty.inteplm.part.CTyPart","零部件","物料码","6-物料库","物料码"),

    STATUS_REQUIREMENT_TABLE("ty.inteplm.part.CTyPart","零部件","状态需求表","6-物料库","状态需求表"),

    PROCESS_RESOURCES("ty.inteplm.part.CTyPart","零部件","工艺资源","6-物料库","工艺资源"),

    LINE_BODY_RESOURCES("ty.inteplm.part.CTyPart","零部件","线体资源","6-物料库","线体资源"),

    PRODUCT_TYPE_SPECTRUM("ty.inteplm.part.CTyPart","零部件","产品型谱","5-机型及开发令号","产品型谱"),

    EBOM_NUMBER("ty.inteplm.part.CTyPart","零部件","EBOM号","6-物料库","EBOM号"),

    FINISHED_PRODUCT_CODE("ty.inteplm.part.CTyPart","零部件","成品码","6-物料库","成品码"),

    STANDARD_PARTS("ty.inteplm.part.CTyPart","零部件","标准件","6-物料库","标准件"),

    UG_DIGITAL_MODEL("ty.inteplm.cad.CTyCADDoc","CAD文档","UG数模","7-设计图纸","设计图纸"),

    ZWCAD("ty.inteplm.cad.CTyCADDoc","CAD文档","ZWCAD","7-设计图纸","设计图纸"),

    UG_ENGINEERING_DRAWING("ty.inteplm.cad.CTyCADDoc","CAD文档","UG工程图","7-设计图纸","设计图纸");

    private String oType;
    private String type;
    private String typeDefName;
    private String contextName;
    private String FolderName;

    public static StoragePlanningEnum getStoragePlanningEnum(String oType,String typeDefName){

        for(StoragePlanningEnum e:StoragePlanningEnum.values()){
            if (e.getOType().equals(oType)&&e.getTypeDefName().equals(typeDefName)){
                return e;
            }
        }
        return null;
    }
}
